package com.fjut.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fjut.model.vod.Course;
import com.fjut.vo.vod.CourseFormVo;
import com.fjut.vo.vod.CoursePublishVo;
import com.fjut.vo.vod.CourseQueryVo;
import com.fjut.vo.vod.CourseVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author DengTianxun
 * @since 2023-03-06
 */
public interface CourseService extends IService<Course> {

    Map<String,Object> courseList(Page<Course> coursePage, CourseQueryVo courseQueryVo);

    Long saveInfo(CourseFormVo courseFormVo);

    Boolean deleteCourse(Long id);

    CourseFormVo getCourseInfoById(Long id);

    void updateCourseInfo(CourseFormVo courseFormVo);

    CoursePublishVo getCoursePublishVo(Long id);

    Boolean publishCourse(Long id);

    List<Course> getCourseLike(String keyWord);

    Map<String,Object> getCourseListByType(CourseQueryVo courseQueryVo, Page<Course> coursePage);

    Map<String,Object> getCourseInfoListById(Long id);

    List<Course> findList();
}
